package com.shuda.business.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shuda.common.core.domain.BaseEntity;
import lombok.EqualsAndHashCode;

/**
 * 用户角色关联实体类
 */
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user_role")
public class UserRoleEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 角色ID */
    private Long roleId;

    /**
    *
    * 用户角色关联 主键访问器
    * @param $params$
    * @return $returns$
    * @author ink
    * @Description: 显式提供userId/roleId访问器，避免Lombok缺失导致Mapper方法引用失败
    * @date 2025-11-09 23:32
    */
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public Long getRoleId() { return roleId; }
    public void setRoleId(Long roleId) { this.roleId = roleId; }
}